/*
 * Powered By [Seven]
 * Since 2016 - 2019
 */

package com.czmh.etc.onlinepubsys.maper;

import org.apache.ibatis.annotations.Mapper;

import com.czmh.etc.common.core.mapper.BaseMapper;
import com.czmh.etc.onlinepubsys.dto.QrCodePromoterDto;
import com.czmh.etc.onlinepubsys.model.QrCode;

@Mapper
public interface QrCodeMapper extends BaseMapper<QrCode, String> {

    /**
     * 根据二级推广员user_id查询是否生成过二级推广码
     * 
     * @param user_id
     * @return
     */
    QrCodePromoterDto getQrCodeByUserId(String user_id);
    
    /**
     * 根据推广员手机号二维码
     * 
     * @param user_id
     * @return
     */
    QrCodePromoterDto getQrCodeByPromoterphone(String promoter_phone);

}
